import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;

public class MainClient {
    public static void main(String[] arrgs) throws IOException {
        Socket socket = new Socket("127.0.0.1",8080);
        ObjectOutputStream objectOutputStream = new ObjectOutputStream(socket.getOutputStream());
        objectOutputStream.writeUTF("xxx");
        objectOutputStream.flush();
        socket.close();
    }
}
